/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.repository;

import com.yunqian.redot.domain.Role;
import com.yunqian.repository.BaseRepository;
import org.springframework.stereotype.Repository;

/**
 * @author czy
 * 2018-11-08 09:41:18
 */
@Repository
public interface RoleRepository extends BaseRepository<Role, Long> {

    boolean existsByNameZh(String nameZh);

    boolean existsByNameZhAndIdNot(String nameZh, Long id);

}
